package com.wnxy.replies.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("封装保存回复")
public class RepliesDto {
    @ApiModelProperty("回复内容")
    @NotBlank(message = "回复内容不能为空！")
    private String content;

    @ApiModelProperty("文章id")
    @NotNull(message = "文章id不能为空！")
    private Integer infoId;
}
